package com.hpc.mapper;

import com.hpc.VO.msgVo;
import entity.message;
import entity.user;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface userMapper {
    public user login(@Param("username") String username, @Param("password") String password);
    public List<user> findAll();
    public List<user> getFollowers(@Param("userIds") List<String> userIds);
    public user getUserInfoByArticleId(@Param("articleId") String articleId);
//    public List<comment> getCommentsOfArticle(@Param("articleId") String articleId);
    public user getUserInfoOfComment(@Param("userId") String userId);
    public int modifyUserInfo(@Param("user") user user,@Param("sex") int sex);
    public user getUserInfoBySerial(@Param("userId") String userId);
    public int changeHeadSculptureUrl(@Param("url") String url,@Param("userid") String userid);
    public List<msgVo> msgsOfUser(@Param("userid") String userid);
    public int register(user user);
    public int checkIfrepeat(@Param("username") String username);
    public int addMessage(message message);
    public List<message> allMessages();
}
